package br.com.conceito.util;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class FacesUtil {

	private static final FacesUtil INSTANCIA = new FacesUtil();
	
	private FacesUtil() {}
	
	public static FacesUtil getInstancia(){
		return INSTANCIA;
	}
	
	public HttpServletRequest getServletRequest(){
		return (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
	}


	public HttpServletResponse getServletResponse(){
		return (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
	}
	
	
}
